package com.b2c.product.controller.user;

import com.b2c.product.service.BranchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import result.Result;

@RestController("userBranchController")
@RequestMapping("/user")
public class BranchController {
    @Autowired
    private BranchService branchService;

    /**
     * 查看品牌
     * @param adminId
     * @return
     */
    @GetMapping("/{adminId}")
    public Result getById(@PathVariable Integer adminId) {
        return branchService.getBranchByAdminId(adminId);
    }

}
